import request from '@/utils/request'

// 查询课程标签列表
export function listCourseTags(query) {
  return request({
    url: '/course/courseTags/list',
    method: 'get',
    params: query
  })
}

// 查询课程标签列表
export function allCourseTags(query) {
  return request({
    url: '/course/courseTags/list/all',
    method: 'get',
    params: query
  })
}

// 查询课程标签详细
export function getCourseTags(id) {
  return request({
    url: '/course/courseTags/' + id,
    method: 'get'
  })
}

// 新增课程标签
export function addCourseTags(data) {
  return request({
    url: '/course/courseTags',
    method: 'post',
    data: data
  })
}

// 修改课程标签
export function updateCourseTags(data) {
  return request({
    url: '/course/courseTags',
    method: 'put',
    data: data
  })
}

// 删除课程标签
export function delCourseTags(id) {
  return request({
    url: '/course/courseTags/' + id,
    method: 'delete'
  })
}
